import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.Vector;
import javax.swing.event.*;
import java.util.*;

public class EditResourceGui extends JPanel
{
	private JPanel centerP = null, southP = null, eastP = null, blankP =null, baseP = null;
	private JLabel skuIdLbl = null, skuNameLbl = null, skuDescLbl = null;
	private JLabel skuTypeLbl = null, skuStatusLbl = null;
	private JTextField skuIdTxt = null, skuNameTxt=null, skuDescTxt=null;
	private JTextField jtf2 = null;
	private JComboBox skuStatus = null, skuType = null;
	private JButton saveBtn = null, cancelBtn = null;
	private Vector vect = null, vect2 = null;
	private JScrollPane scrollP = null, scroll2P = null;
	
	public EditResourceGui() 
	{
		centerP = new JPanel(new GridLayout(5,2));
		vect = new Vector();
		vect.addElement("< Select >");
		vect.addElement("In");
		vect.addElement("Out");
		vect.addElement("Damaged");
		skuStatus = new JComboBox(vect);
		scrollP = new JScrollPane(skuStatus ,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		
		skuIdLbl = new JLabel("Resource ID");
		skuIdTxt = new JTextField("", 20);
		skuNameLbl = new JLabel("Resource Name");
		skuNameTxt = new JTextField("", 20);
		skuDescLbl = new JLabel("Resource Description");
		skuDescTxt = new JTextField("", 35);
		skuTypeLbl = new JLabel("Resource Media");
		
		skuStatusLbl = new JLabel("Resource Status");
		vect2 = new Vector();
		vect2.addElement("< Select >");
		vect2.addElement("DVD");
		vect2.addElement("VHS");
		vect2.addElement("VHS Player");
		vect2.addElement("DVD Player");
		vect2.addElement("Blue Ray");
		vect2.addElement("PS One Game");
		vect2.addElement("PS One Console");
		vect2.addElement("PS 2 Game");
		vect2.addElement("PS 2 Console");
		vect2.addElement("PS 3 Game");
		vect2.addElement("PS 3 Console");
		skuType = new JComboBox(vect2);
		scroll2P = new JScrollPane(skuType ,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		
		centerP.add(skuIdLbl);
		centerP.add(skuIdTxt);
		centerP.add(skuNameLbl);
		centerP.add(skuNameTxt);
		centerP.add(skuDescLbl);
		centerP.add(skuDescTxt);
		centerP.add(skuTypeLbl);
		centerP.add(skuType);
		centerP.add(skuStatusLbl);
		centerP.add(skuStatus);
		centerP.setBorder(BorderFactory.createEmptyBorder(30,50,30,60));
		
		southP = new JPanel(new GridLayout(1,1));
		jtf2 = new JTextField();
		
		eastP = new JPanel(new BorderLayout());
		saveBtn = new JButton("Save");
		saveBtn.setToolTipText("Commit Changes");
		cancelBtn = new JButton("Cancel");
		cancelBtn.setToolTipText("Discard Changes");
		
		blankP = new JPanel(new GridLayout(1,2));
		blankP.add(saveBtn);
		blankP.add(cancelBtn);
		blankP.setBorder(BorderFactory.createEmptyBorder(0,0,10,20));
		
		eastP.add(blankP, BorderLayout.SOUTH);
				
		southP.add(jtf2);
		
		baseP = new JPanel(new BorderLayout());
		
		baseP.add(centerP, BorderLayout.CENTER);
		baseP.add(southP, BorderLayout.SOUTH);
		baseP.add(eastP, BorderLayout.EAST);
				
		//setup "this" Jpanel
		this.setLayout(new GridLayout(1,1));
		this.add(baseP);
		
	}

	
	
}
